{template 'common/header'}
<ol class="breadcrumb we7-breadcrumb">
	<a href="{php echo $this->createWebUrl('sitlist', array('module_type'=>'system_welcome'));}"><i class="wi wi-back-circle"></i> </a>
	<li>
		<a href="{php echo $this->createWebUrl('sitlist', array('module_type'=>'system_welcome'));}">站点管理</a>
	</li>
	<li>
		站点列表
	</li>
</ol>
<div class="clearfix">
	<form action="{php echo $this->createWebUrl('sitlist')}" method="get">
		<input type="hidden" name="c" value="site">
		<input type="hidden" name="a" value="entry">
		<input type="hidden" name="module_type" value="system_welcome">
		<input type="hidden" name="do" value="sitlist">
		<input type="hidden" name="m" value="{$_GPC['m']}">
		<input type="hidden" name="add_time" value="{$_GPC['add_time']}">
		<div class="form-group">
			<label class="col-sm-2 control-label">站点所属人</label>
			<div class="input-group col-sm-4 pull-left">
				<input class="form-control" name="site_cust" type="text" value="{$_GPC['site_cust']}">
				<div class="input-group-btn">
					<button type='submit' class="btn btn-default"><i class="fa fa-search"></i> </button>
				</div>
			</div>
			<div class="pull-right">
				<a href="{php echo $this->createWebUrl('sitdit', array('module_type'=>'system_welcome'));}" class="btn btn-primary btn-sm">添加站点</a>
			</div>
		</div>
	</form>
	<table class="table table-bordered">
		<thead>
            <tr>
				<th>站点域名</th>
				<th>站点所属人</th>
				<th>站点标识</th>
				<th>站点添加时间</th>
				<th>操作</th>
			</tr>
        </thead>
		 <tbody>
		{loop $site_list $index $site}
			<tr>
				<td>{$site['site_domain']}</td>
				<td>{$site['site_cust']}</td>
				<td>{$site['site_code']}</td>
				<td>{$site['add_time']}</td>
				<td>
					<a href="{php echo $this->createWebUrl('Configenterprise', array('site_code' => $site['site_code'],'module_type'=>'system_welcome'));}" class="label label-warning">配置</a>
					<a href="{php echo $this->createWebUrl('sitdit', array('site_id' => $site['site_id'],'module_type'=>'system_welcome'));}" class="label label-success">编辑</a>
					<a href="{php echo $this->createWebUrl('sitdel', array('site_id' => $site['site_id'],'module_type'=>'system_welcome'));}" class="label label-danger" onclick="if(!confirm('确定删除吗')) return false;">删除</a>
				</td>
			</tr>
		{/loop}
		</tbody>
	</table>
	<div class="text-right">
		{$pager}
	</div>
</div>

{template 'common/footer'}
